package mediator.example;

/**
 * @Author：LJ
 * @Description：
 * @Date: 2017/11/28
 * @Modified By:
 */
public class Client {

    public static void main(String[] args) {
        AbstarctMediator mediator = new Mediator();
        System.out.println("采购人员采购电脑");
        new Purchase(mediator).buyIBMComputer(100);
        System.out.println("销售人员销售电脑");
        new Sale(mediator).sellIBMComputer(2);
        System.out.println("库存管理人员清理库存");
        new Stock(mediator).clearStock();
    }
}
